project(test)
message(STATUS "============test module===========")
add_compile_options(-std=c++11 )
    
find_package(OpenCV REQUIRED)
# include头文件目录
include_directories( ${OpenCV_INCLUDE_DIRS}
                    ${PROJECT_SOURCE_DIR}/../install/include
                   )

# library目录及name名称
link_directories(${PROJECT_SOURCE_DIR}/../install/lib )
add_definitions(-DMXNET_USE_CUDA=1)
link_directories(/usr/local/cuda/lib64)


add_executable(test_picture test_picture.cpp)
target_link_libraries(test_picture /data/gcy/c++_libs/libmxnet.so.1.2.0 ${OpenCV_LIBS} mxnet_predict)
set_target_properties(test_picture
        PROPERTIES 
        ARCHIVE_OUTPUT_DIRECTORY "${PROJECT_SOURCE_DIR}/lib"
        LIBRARY_OUTPUT_DIRECTORY "${PROJECT_SOURCE_DIR}/lib"
        #RUNTIME_OUTPUT_DIRECTORY "${PROJECT_SOURCE_DIR}/bin"
)
